#include "driveinfo.h"

DriveInfo::DriveInfo()
{

}

void DriveInfo::setParkingBrake(bool brakeOn)
{
    if(brakeOn)
    {
        parking_brake = "TRUE";
    }
    else
    {
        parking_brake = "FALSE";
    }
}

void DriveInfo::setDriveMode(bool autoDrive)
{
    if(autoDrive)
    {
        drive_mode = "AUTO";
    }
    else
    {
        drive_mode = "MANU";
    }
}

void DriveInfo::setLightFlag(DriveInfo::lighting_state state)
{
    if(state == L_G)
    {
        lightFlag = "G";
    }
    else if(state == L_R)
    {
        lightFlag = "R";
    }
    else if(state == L_Y)
    {
        lightFlag = "Y";
    }
    else if(state == L_N)
    {
        lightFlag = "N";
    }
}
